package cst.a722wr.zyfypt_722wr.iface;

import java.util.List;

import  cst.a722wr.zyfypt_722wr.Bean.ArticleBean;
import  cst.a722wr.zyfypt_722wr.Bean.LoginBean;
import  cst.a722wr.zyfypt_722wr.Bean.ProjectBean;
import  cst.a722wr.zyfypt_722wr.Bean.TcaseBean;
import  cst.a722wr.zyfypt_722wr.Bean.TwareBean;
import  cst.a722wr.zyfypt_722wr.Bean.VideoBean;
import  cst.a722wr.zyfypt_722wr.Bean.VideoTopicBean;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.Path;
import retrofit2.http.Query;

public interface ResService {

    @GET("api.php/login")
    Call<LoginBean> login(@Query("username") String username,
                          @Query("password") String password);

    @GET("api.php/reg")
    Call<String> reg(@Query("username") String username,
                     @Query("password") String password,
                     @Query("tel") String tel,
                     @Query("roleid") int roleid,
                     @Query("realname") String realname,
                     @Query("email") String email);


    @GET("api.php/lists/mod/{mod}")
    Call<List<VideoBean>> getVideoList(@Path("mod") String video,
                                       @Query("page") int page,
                                       @Header("SessionID") String sessionID);

    @GET("api.php/listspecial/mod/{mod}")
    Call<List<VideoTopicBean>> getVideoTopicList(@Path("mod") String video,
                                                 @Query("page") int page,
                                                 @Header("SessionID") String sessionID);

    @GET("api.php/lists/mod/{mod}")
    Call<List<ArticleBean>> getArticleList(@Path("mod") String mod,
                                           @Query("page") int page,
                                           @Header("SessionID") String sessionID);

    @GET("api.php/lists/mod/{mod}")
    Call<List<TwareBean>> getTwareList(@Path("mod") String mod,
                                       @Query("page") int page,
                                       @Header("SessionID") String sessionID);

    @GET("api.php/lists/mod/{mod}")
    Call<List<TcaseBean>> getTcaseList(@Path("mod") String mod,
                                       @Query("page") int page,
                                       @Header("SessionID") String sessionID);

    @GET("api.php/lists/mod/{mod}")
    Call<List<ProjectBean>> getProjectList(@Path("mod") String mod,
                                           @Query("page") int page,
                                           @Header("SessionID") String sessionID);

    @GET("api.php/logout")
    Call<String> logout(@Header("SessionID") String sessionID);

    @GET("api.php/lists/mod/{mod}")
    Call<List<ArticleBean>> getFocusArticleList(@Path("mod") String mod,
                                                @Query("page") int page,
                                                @Header("SessionID") String sessionID,
                                                @Query("userid") int userid);
    @GET("api.php/lists/mod/{mod}")
    Call<List<VideoBean>> getFocusVideoList(@Path("mod") String mod,
                                            @Query("page") int page,
                                            @Header("SessionID") String sessionID,
                                            @Query("userid") int userid);
    @GET("api.php/lists/mod/{mod}")
    Call<List<TwareBean>> getFocusTwareList(@Path("mod") String mod,
                                            @Query("page") int page,
                                            @Header("SessionID") String sessionID,
                                            @Query("userid") int userid);
    @GET("api.php/lists/mod/{mod}")
    Call<List<TcaseBean>> getFocusTcaseList(@Path("mod") String mod,
                                            @Query("page") int page,
                                            @Header("SessionID") String sessionID,
                                            @Query("userid") int userid);
    @GET("api.php/lists/mod/{mod}")
    Call<List<ProjectBean>> getFocusProjectList(@Path("mod") String mod,
                                                @Query("page") int page,
                                                @Header("SessionID") String sessionID,
                                                @Query("userid") int userid);



}
